package com.team10.hotel.mapper;

import com.team10.hotel.domain.Order;

import java.util.List;

public interface OrderMapperExt {


    List<Order> selectOrderByHotelId(Integer id);
    List<Order> selectAll();

    Order selectByPrimaryKey();

    List<Order> selectAllByUserId(String userId);

    List<Order> selectByOrderId(Integer id);

    Order selectExtByPrimaryKey(String orderId);

    List<Order> findOrderByUserId(String userId);

    List<Order> listHistoryOrder(String id);

    List<Order> selectHistoryAllByUserId(String userId);

    //hj
    int updateOrderStatusToCancel(String id);

    List<Order> selectHistoryAll();

    int updateOrderStatusToNoPay(String id);

    //刘蒴
    int bookOrder(Order order);

    int updateOrderStatusToPayed(String id);

    int updateOrderStatusToCompleted(String id);
}
